package jun.empdepmanagersystem02.mapper;


import jun.empdepmanagersystem02.pojo.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper

public interface EmpMapper {


    int delete(List<Integer> ids);

    void update(Emp emp);

    List<Emp> selectList(Emp.Selector selector);


    void insert(Emp emp);

    @Select("select * from emp where username = #{username}")
    Emp getByUserName(String username);
}
